<!DOCTYPE html>
<html>
<head>
    <title>相对定位</title>
    <style>
        *{ margin:0; padding:0; }
        li {
            list-style: none;
        }
        .box1{
            position: absolute;
            right: 5px;
            top: 500px;
            height: 100px;
            width: 100px;
            background-color: pink;
        }
        .father{
            position: relative;
            height: 300px;
            width: 500px;
            background-color: salmon;
            margin: 0 auto;
        }
        .son-left{
            position: absolute;
            top: 140px;
            width: 20px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            background-color: rgb(0, 0, 0, .3);
            cursor: pointer;
            color: #fff;
        }
        .son-right{
            position: absolute;
            top: 140px;
            right: 0;
            height: 30px;
            width: 20px;
            text-align: center;
            line-height: 30px;
            background-color: rgb(0, 0, 0, .3);
            cursor: pointer;
            color: #fff;
        }
        .promo-nav {
            position: absolute;
            bottom: 14px;
            left: 215px;
            height: 14px;
            width: 70px;
            background-color: rgba(255, 255, 255, .3);
            border-radius: 7px;
        }
        .promo-nav li{
            float: left;
            height: 8px;
            width: 8px;
            margin: 3px;
            border-radius: 4px;
            background-color: #fff;
        }
        .promo-nav .selected{
            background-color: red;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="father">
        <div class="son-left">&lt;</div>
        <div class="son-right">&gt;</div>
        <ul class="promo-nav">
            <li class="selected"></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</body>
</html>